<%@ page import="projectmanagerapp.User" %>

<%@ page contentType="text/html;charset=ISO-8859-1" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<meta name="layout" content="main"/>
<title>User Test Page</title>
</head>

<body>
<a href="#show-role" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>

<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				
				<g:if  test="${session.user == null}">
				
				<li><g:link class="login" controller= "user"action="login"><g:message code="Login" args="[entityName]" /></g:link></li>
				</g:if> 
				
				<g:else>	
				<li><g:link class="login" controller= "user"action="logout"><g:message code="Logout" args="[entityName]" /></g:link></li>				</g:else>
			</ul>
		</div>
  <div class="body">
  <h1>Welcome to the User features!</h1>
  </div>
</body>
</html>